/**
 * Copyright 2009 by Christian Scheid. This file is part of the switch eclipse plugin and is licensed under the GPL
 * version 3. Please refer to the URL http://www.gnu.org/licenses/gpl-3.0.html for details.
 */
package org.digitalsoul.switchplugin.actions.store;

import java.util.HashMap;

import org.digitalsoul.switchplugin.model.ISwitchFile;

final class FileStore {

    private static FileStore instance = new FileStore();

    public static FileStore getInstance() {
        return instance;
    }

    private final HashMap<String, ISwitchFile> store = new HashMap<String, ISwitchFile>();

    public void addFile(String key, ISwitchFile file) {
        store.put(key, file);
    }

    public ISwitchFile getFile(String key) {
        return store.get(key);
    }
}